SRC := /root/linux-5.3.1/
DIST := /root/test/
run:
	@g++ main.cpp -o main -std=c++11 -lpthread
	make testcp
	make testmy
clean:
	-@rm -rf $(DIST)
mdiff:
	@diff -urNa $(SRC) $(DIST) && echo "验证成功" || echo "验证失败"
testcp:clean
	@time -p cp $(SRC) $(DIST) -r
	make mdiff
testmy:clean
	@time -p ./main -s $(SRC) -d $(DIST) -p 8 > stdout.txt
	make mdiff



